import request from "../api/request";

const axiosTest = () => request({Setrl:"traneserver/user/test",method:"GET"})
const axiosRegister = (params) => request({url:"traneserver/user/register",method:"GET",params:params})
const axiosLogin = (params) => request({url:"traneserver/user/login",method:"GET",params:params})
const axiosGetPersonInfo = (params) => request({url:"traneserver/user/getinfo",method:"GET",params:params})
const axiosSetPersonInfo = (params) => request({url:"traneserver/user/setinfo",method:"GET",params:params})
const axiosSetPersonConfig = (params) => request({url:"traneserver/user/upass",method:"GET",params:params})
const axiosGetPosts = (params) => request({url:"traneserver/post/pgets",method:"GET",params:params})
const axiosGetPostDetails = (params) => request({url:"traneserver/post/details",method:"GET",params:params})
const axiosNewPosts = (params) => request({url:"traneserver/post/new",method:"GET",params:params})
const axiosGetComments = (params) => request({url:"traneserver/post/gcomment",method:"GET",params:params})
const axiosNewComments = (params) => request({url:"traneserver/post/ncomment",method:"GET",params:params})
const axiosAddNewLike = (params) => request({url:"traneserver/post/like",method:"GET",params:params})

export{
    axiosTest,
    axiosRegister,
    axiosLogin,
    axiosGetPersonInfo,
    axiosSetPersonInfo,
    axiosSetPersonConfig,
    axiosGetPosts,
    axiosNewPosts,
    axiosGetPostDetails,
    axiosAddNewLike,
    axiosNewComments,
    axiosGetComments
}
